package com.pluto.cloud.example.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

/**
 * Created by Administrator on 2016/8/3.
 */
@RestController
@RequestMapping(value = "/api")
@Api(basePath = "/api", value = "DEMO API", description = "DEMOAPI", produces = "application/json")
public class SwaggerController {



    @ApiOperation(httpMethod = "GET", value = "演示功能", notes = "演示API DEMO")
    @RequestMapping(value = "/demoApi", method = RequestMethod.GET)
    public String demoApi(@ApiParam(name="note",value = "备注")@RequestParam("note") String note) {
        return note;
    }

}
